//
//  NSMutableDictionary+CSDKInfo.m
//  onebuycheckstand
//
//  Created by xu yao on 2021/3/2.
//

#import "NSMutableDictionary+CSDKInfo.h"
#import "EnvironmentDefine.h"
#import "UWeChat.h"
#import "UAlipay.h"
#import "UGZRCpay.h"
@implementation NSMutableDictionary (CSDKInfo)

- (void)USDKSetupWeChatByAppId:(NSString *)appId appSecret:(NSString *)appSecret universalLink:(NSString *)universalLink{
    if (appId.length != 18 && ![[appId substringToIndex:2] isEqualToString:@"wx"]) {
        LCLog(@"appid 有误！");
        return;
    }
    if (appSecret.length == 0) {
        LCLog(@"appSecret 不能为空");
    }
    [UWeChat registerWeChat:appId universalLink:universalLink];
}

- (void)USDKSetupAliPayFromScheme:(NSString *)schemeStr {
    [UAlipay currentHelper].schemeStr = schemeStr;
}

- (void)USDKSetupGZRCpayByAppNo:(NSString *)appNO andMerNo:(NSString *)merNo {
    [UGZRCpay currentHelper].appNO = appNO;
    [UGZRCpay currentHelper].merNo = merNo;
}

@end
